package com.twenty.seven.result;

import lombok.Getter;

/**
 * 返回结果 枚举类
 */
@Getter
public enum  ResultCodeEnum {
    SUCCESS(true,200,"成功"),
    UNKNOWN_ERROR(false,500,"未知名错误"),
    PARAM_ERROR(false,100,"参数错误");

    /**
     * 响应是否成功
     */
    private Boolean success;

    /**
     *  响应码
     */
    private Integer code;

    /**
     * 响应信息
     */
    private String message;

    ResultCodeEnum(boolean success,Integer code, String message){
        this.success = success;
        this.code = code;
        this.message = message;
    }
}
